package com.threegroup.admin.security.user;

import com.threegroup.admin.entity.SysUserEntity;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

public class SysUser extends User {

    private SysUserEntity sysUserEntity;

    public SysUser(String username, String password, Collection<? extends GrantedAuthority> authorities, SysUserEntity sysUserEntity) {
        super(username, password, authorities);
        this.sysUserEntity = sysUserEntity;
    }

    public SysUserEntity getSysUserEntity() {
        return sysUserEntity;
    }
}
